<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()
            + "://" + request.getServerName()
            + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title>头部</title>
    <link rel="stylesheet" href="<%=basePath%>css/base.css">
    <link rel="stylesheet" href="<%=basePath%>css/style.css">
    <script src="<%=basePath%>js/jquery-1.11.1.min.js"></script>
</head>
<body>
<div class="head-box">
    <div class="head wrap">
        <div class="logo fl"><a href=""><img src="<%=basePath%>images/logo.png"></a></div>
        <div class="head-right fr">
            <div class="clearfix"></div>
            <div class="nav fr" style="line-height: 90px">
                <ul>
                    <li><a onclick="shouyeInfo()">首页</a></li>
                    <%--<li><a href="<%=basePath%>userLogin/wenzhang.jsp" onclick="searchAllFile()">文章</a></li>--%>
                    <li><a onclick="searchAllFile()">文章</a></li>
                    <li><a onclick="getTieziAction()">社区</a></li>
                    <li><a href="<%=basePath%>userLogin/contact.jsp">联系我们</a></li>
                </ul>
            </div>
            <div class="clearfix"></div>
        </div>
        <div class="tbt fl" style="margin-top: 32px;float: right;margin-right: -670px">
            <img src="<%=basePath%>upload/tuceng.png" display: inline-block>
            <h3 style="color:white;float: right;font-size:14px;margin-right:-60px;width: 50px;margin-top:-25px;">${sessionScope.user.name}</h3>
            <div class="hgt-btm">
                <a href="<%=basePath%>shixun/myselfMain">我的主页</a>
                <%--<a href="">消息</a>--%>
                <%--<a href="">我的关注</a>--%>
                <%--<a href="account.html">帐号设置</a>--%>
                <a onclick="signOut()" href="<%=basePath%>TestSX/loginOut">退出</a>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function searchAllFile(){
        window.location.href = "<%=basePath%>shixun/selectFourInfo";
    }
    //跳转首页
    function shouyeInfo() {
        window.location.href="<%=basePath%>shixun/indexLogin";
    }
</script>
<script type="text/javascript">
    function getTieziAction() {
        window.location.href="<%=basePath%>TestSX/selectFourInfo";
    }
</script>
</body>
</html>
